You are here

protected function MetatagDisplayExtender::hasMetatags in Metatag 8

Identify whether or not the current display has custom meta tags defined.

Return value

bool Whether or not the view has overridden metatags.

1 call to MetatagDisplayExtender::hasMetatags()
MetatagDisplayExtender::optionsSummary in metatag_views/src/Plugin/views/display_extender/MetatagDisplayExtender.php
Provide the default summary for options in the views UI.

File

metatag_views/src/Plugin/views/display_extender/MetatagDisplayExtender.php, line 211

Class

MetatagDisplayExtender
Metatag display extender plugin.

Namespace

Drupal\metatag_views\Plugin\views\display_extender

Code

protected function hasMetatags() {
  $metatags = $this
    ->getMetatags();
  return !empty($metatags);
}