You are here

public function PathautoItem::isEmpty in Pathauto 8

Determines whether the data structure is empty.

Return value

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

Overrides PathItem::isEmpty

File

src/PathautoItem.php, line 42

Class

PathautoItem
Extends the default PathItem implementation to generate aliases.

Namespace

Drupal\pathauto

Code

public function isEmpty() {

  // Make sure that the pathauto state flag does not get lost if just that is
  // changed.
  return parent::isEmpty() && !$this
    ->get('pathauto')
    ->hasValue();
}