You are here

public function PluginCollectionItemBase::isEmpty in Plugin 8.2

Determines whether the data structure is empty.

Return value

bool TRUE if the data structure is empty, FALSE otherwise.

Overrides Map::isEmpty

File

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

Class

PluginCollectionItemBase
Provides a base for plugin collection field items.

Namespace

Drupal\plugin\Plugin\Field\FieldType

Code

public function isEmpty() {
  return !$this
    ->getContainedPluginInstance();
}