You are here

public function BrightcoveInlineForm::save in Brightcove Video Connect 8

Same name and namespace in other branches
  1. 8.2 src/Form/BrightcoveInlineForm.php \Drupal\brightcove\Form\BrightcoveInlineForm::save()
  2. 3.x src/Form/BrightcoveInlineForm.php \Drupal\brightcove\Form\BrightcoveInlineForm::save()

Saves the given entity.

Parameters

\Drupal\Core\Entity\EntityInterface $entity: The entity.

Return value

int Either SAVED_NEW or SAVED_UPDATED, depending on the operation performed.

Overrides EntityInlineForm::save

File

src/Form/BrightcoveInlineForm.php, line 16

Class

BrightcoveInlineForm
Extends the inline form to pass along TRUE to the video/playlist save method.

Namespace

Drupal\brightcove\Form

Code

public function save(EntityInterface $entity) {
  $entity
    ->save(TRUE);
}