You are here

public function DisqusItem::isEmpty in Disqus 8

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/DisqusItem.php, line 58

Class

DisqusItem
Plugin implementation of the Disqus comments field type.

Namespace

Drupal\disqus\Plugin\Field\FieldType

Code

public function isEmpty() {
  return $this
    ->get('status')
    ->getValue() === '';
}