You are here

public function PluginCollectionItemBase::__isset in Plugin 8.2

Magic method: Determines whether a property is set.

Parameters

string $property_name: The name of the property to get; e.g., 'title' or 'name'.

Return value

bool Returns TRUE if the property exists and is set, FALSE otherwise.

Overrides FieldItemBase::__isset

File

src/Plugin/Field/FieldType/PluginCollectionItemBase.php, line 217

Class

PluginCollectionItemBase
Provides a base for plugin collection field items.

Namespace

Drupal\plugin\Plugin\Field\FieldType

Code

public function __isset($name) {

  // All properties depend on the main property.
  return parent::__isset($this
    ->mainPropertyName());
}