/** * {@inheritdoc} */ public function applyDefaultValue($notify = TRUE) { parent::applyDefaultValue($notify); // Created fields default creating a new alias. $this->setValue(array('pathauto' => PathautoState::CREATE), $notify); return $this; }
/** * {@inheritdoc} */ public function update() { // Only allow the parent implementation to act if pathauto will not create // an alias. if (!isset($this->pathauto) || empty($this->pathauto)) { parent::update(); } }