You are here

public function FormAssemblyEntity::disable in FormAssembly 8

Sets fa_form status to 0-unpublished.

Return value

\Drupal\formassembly\Entity\FormAssemblyEntity The called FormAssembly Form entity.

Overrides FormAssemblyEntityInterface::disable

File

src/Entity/FormAssemblyEntity.php, line 145

Class

FormAssemblyEntity
Defines the FormAssembly Form entity.

Namespace

Drupal\formassembly\Entity

Code

public function disable() {
  $this
    ->set('status', FALSE);
  return $this;
}