You are here

protected function ViewsDuplicateBuilderBase::loadViewsTemplateValue in Views Templates 8

Return value from template.

Parameters

mixed $key: The Key.

mixed $options: The options.

Return value

mixed|null Return the value or a null.

2 calls to ViewsDuplicateBuilderBase::loadViewsTemplateValue()
ViewsDuplicateBuilderBase::getAdminLabel in src/Plugin/ViewsDuplicateBuilderBase.php
Get template admin label.
ViewsDuplicateBuilderBase::getDescription in src/Plugin/ViewsDuplicateBuilderBase.php
Get template description.

File

src/Plugin/ViewsDuplicateBuilderBase.php, line 105

Class

ViewsDuplicateBuilderBase
ViewsDuplicateBuilderBase Class.

Namespace

Drupal\views_templates\Plugin

Code

protected function loadViewsTemplateValue($key, $options = NULL) {
  $view_template = $this
    ->loadTemplate($options);
  if (isset($view_template[$key])) {
    return $view_template[$key];
  }
  return NULL;
}