public function ViewsBuilderBase::getDefinitionValue in Views Templates 8
Get a value from the plugin definition.
Parameters
string $key: The key to get the value from the plugin definition.
Return value
mixed Returns a a value from the plugin definition.
Overrides ViewsBuilderPluginInterface::getDefinitionValue
5 calls to ViewsBuilderBase::getDefinitionValue()
- ViewsBuilderBase::getAdminLabel in src/
Plugin/ ViewsBuilderBase.php - Get template admin label.
- ViewsBuilderBase::getBaseTable in src/
Plugin/ ViewsBuilderBase.php - Returns base table id.
- ViewsBuilderBase::getDescription in src/
Plugin/ ViewsBuilderBase.php - Get template description.
- ViewsDuplicateBuilderBase::getReplacements in src/
Plugin/ ViewsDuplicateBuilderBase.php - Get the replaces array from the plugin definition.
- ViewsDuplicateBuilderBase::getViewTemplateId in src/
Plugin/ ViewsDuplicateBuilderBase.php - Return the View Template id to be used by this Plugin.
File
- src/
Plugin/ ViewsBuilderBase.php, line 41
Class
- ViewsBuilderBase
- Base builder for View Templates.
Namespace
Drupal\views_templates\PluginCode
public function getDefinitionValue($key) {
$def = $this
->getPluginDefinition();
if (isset($def[$key])) {
return $def[$key];
}
return NULL;
}