You are here

private function metatag_views_plugin_display_extender_metatags::get_metatags in Metatag 7

Get the Metatag configuration for this display.

Return value

array The meta tag values, keys by language (default LANGUAGE_NONE).

2 calls to metatag_views_plugin_display_extender_metatags::get_metatags()
metatag_views_plugin_display_extender_metatags::has_metatags in metatag_views/metatag_views_plugin_display_extender_metatags.inc
Identify whether or not the current display has custom meta tags defined.
metatag_views_plugin_display_extender_metatags::options_form in metatag_views/metatag_views_plugin_display_extender_metatags.inc
Provide a form to edit options for this plugin.

File

metatag_views/metatag_views_plugin_display_extender_metatags.inc, line 166
Custom display extender plugin for Views.

Class

metatag_views_plugin_display_extender_metatags
Custom display extender plugin for Views.

Code

private function get_metatags() {
  $metatags = $this->display
    ->get_option('metatags');

  // Leave some possibility for future versions to support translation.
  if (empty($metatags)) {
    $metatags = array(
      LANGUAGE_NONE => array(),
    );
  }
  if (!isset($metatags[LANGUAGE_NONE])) {
    $metatags = array(
      LANGUAGE_NONE => $metatags,
    );
  }
  return $metatags;
}