Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
thejimbirch committed Mar 2, 2024
1 parent caa1c5c commit b3e3cf8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions saplings_custom.module
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
function saplings_custom_preprocess_html(array &$variables) {
// Load the node entity from current route.
$node = \Drupal::routeMatch()->getParameter('node');
if ($node instanceof NodeInterface){
// Get the value of the field.
if ($node instanceof NodeInterface) {
// Get the value of the field.
if ($node->hasField('sa_robots')) {
$robots_field = $node->get('sa_robots')->getString();
}
Expand Down

0 comments on commit b3e3cf8

Please sign in to comment.