public function EntityEmbedDisplayBase::hasAttribute in Entity Embed 8
Checks if an attribute is set.
Parameters
string $name: The name of the attribute.
Return value
bool Returns TRUE if value is set.
File
- src/
EntityEmbedDisplay/ EntityEmbedDisplayBase.php, line 335
Class
- EntityEmbedDisplayBase
- Defines a base Entity Embed Display implementation.
Namespace
Drupal\entity_embed\EntityEmbedDisplayCode
public function hasAttribute($name) {
return array_key_exists($name, $this
->getAttributeValues());
}