Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
metatag_views.module contains the following function, which checks for a method "has_metatags" (which doesn't exist for views_plugin_display):
function metatag_views_views_display_has_metatags(views_plugin_display $display) {
if (method_exists($display, 'has_metatags')) {
return $display->has_metatags();
}
else {
return $display->has_path() && $display->uses_breadcrumb();
}
}
There is a protected method has_metatags() in metatag_views_plugin_display_extender_metatags, which looks like this:
protected function has_metatags() {
return metatag_views_views_display_has_metatags($this->display);
}
I keep wondering: when would views_plugin_display (or a child class) ever implement the method has_metatags()?
Could it be that this is a leftover from an earlier project?
Comments
Comment #1
ciss CreditAttribution: ciss commentedComment #2
ciss CreditAttribution: ciss at yousign GmbH commentedThe function no longer exists, and the extender plugin has been overhauled.