public function EntityEmbedDisplayBase::getContextValue in Entity Embed 8
Gets the value for a defined context.
Parameters
string $name: The name of the context in the plugin configuration.
Return value
mixed The currently set context value.
2 calls to EntityEmbedDisplayBase::getContextValue()
- EntityEmbedDisplayBase::getEntityFromContext in src/
EntityEmbedDisplay/ EntityEmbedDisplayBase.php - Gets the entity from the current context.
- EntityEmbedDisplayBase::getEntityTypeFromContext in src/
EntityEmbedDisplay/ EntityEmbedDisplayBase.php - Gets the entity type from the current context.
File
- src/
EntityEmbedDisplay/ EntityEmbedDisplayBase.php, line 239
Class
- EntityEmbedDisplayBase
- Defines a base Entity Embed Display implementation.
Namespace
Drupal\entity_embed\EntityEmbedDisplayCode
public function getContextValue($name) {
return !empty($this->context[$name]) ? $this->context[$name] : NULL;
}