You are here

class BrightcoveInlineForm in Brightcove Video Connect 8

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

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

Hierarchy

Expanded class hierarchy of BrightcoveInlineForm

File

src/Form/BrightcoveInlineForm.php, line 11

Namespace

Drupal\brightcove\Form
View source
class BrightcoveInlineForm extends EntityInlineForm {

  /**
   * {@inheritdoc}
   */
  public function save(EntityInterface $entity) {
    $entity
      ->save(TRUE);
  }

}

Members

Namesort descending Modifiers Type Description Overrides
BrightcoveInlineForm::save public function Saves the given entity. Overrides EntityInlineForm::save
EntityInlineForm::$entityFieldManager protected property The entity field manager.
EntityInlineForm::$entityType protected property The entity type managed by this handler.
EntityInlineForm::$entityTypeManager protected property The entity type manager.
EntityInlineForm::$moduleHandler protected property Module handler service.
EntityInlineForm::buildEntity protected function Builds an updated entity object based upon the submitted form values.
EntityInlineForm::createInstance public static function Instantiates a new instance of this entity handler. Overrides EntityHandlerInterface::createInstance
EntityInlineForm::delete public function Delete permanently saved entities. Overrides InlineFormInterface::delete
EntityInlineForm::entityForm public function Builds the entity form. Overrides InlineFormInterface::entityForm
EntityInlineForm::entityFormSubmit public function Handles the submission of an entity form. Overrides InlineFormInterface::entityFormSubmit
EntityInlineForm::entityFormValidate public function Validates the entity form. Overrides InlineFormInterface::entityFormValidate
EntityInlineForm::getEntityLabel public function Gets the label of the given entity. Overrides InlineFormInterface::getEntityLabel
EntityInlineForm::getEntityType public function Gets the entity type managed by this handler. Overrides InlineFormInterface::getEntityType
EntityInlineForm::getEntityTypeLabels public function Gets the entity type labels (singular, plural). Overrides InlineFormInterface::getEntityTypeLabels 1
EntityInlineForm::getFormDisplay protected function Gets the form display for the given entity.
EntityInlineForm::getTableFields public function Gets the columns used to represent an entity in the IEF table. Overrides InlineFormInterface::getTableFields 1
EntityInlineForm::isTableDragEnabled public function Checks whether tabledrag should be enabled for the given table. Overrides InlineFormInterface::isTableDragEnabled
EntityInlineForm::submitCleanFormState public static function Cleans up the form state for a submitted entity form.
EntityInlineForm::__construct public function Constructs the inline entity form controller.
StringTranslationTrait::$stringTranslation protected property The string translation service. 1
StringTranslationTrait::formatPlural protected function Formats a string containing a count of items.
StringTranslationTrait::getNumberOfPlurals protected function Returns the number of plurals supported by a given language.
StringTranslationTrait::getStringTranslation protected function Gets the string translation service.
StringTranslationTrait::setStringTranslation public function Sets the string translation service to use. 2
StringTranslationTrait::t protected function Translates a string to the current language or to a given language.