You are here

public function FormAssemblyEntity::enable in FormAssembly 8

Sets fa_form status to 1-published.

Return value

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

Overrides FormAssemblyEntityInterface::enable

File

src/Entity/FormAssemblyEntity.php, line 137

Class

FormAssemblyEntity
Defines the FormAssembly Form entity.

Namespace

Drupal\formassembly\Entity

Code

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