Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $field_path = $node->get('field_checkbox')->value;
- if ($field_path == 'on') {
- $replacements[] = '/its-checked/[node:title]';
- }
- elseif ($field_path == 'off') {
- $replacements[] = 'its-not-checked/[node:title]';
- }
Add Comment
Please, Sign In to add comment