You are here

class BrokenEntityQueueHandler in Entityqueue 7

A NULL implementation of EntityQueueHandlerInterface.

Hierarchy

Expanded class hierarchy of BrokenEntityQueueHandler

File

plugins/entityqueue/handler/base.inc, line 187
Contains Entityqueue handler interface and base class.

View source
class BrokenEntityQueueHandler extends EntityQueueHandlerBase {

  /**
   * {@inheritdoc}
   */
  public static function getInstance(EntityQueue $queue) {
    return new BrokenEntityQueueHandler($queue);
  }

  /**
   * {@inheritdoc}
   */
  public function settingsForm() {
    $form['handler'] = array(
      '#markup' => t('The selected handler is broken.'),
    );
    return $form;
  }
  public function subqueueForm(EntitySubqueue $subqueue, &$form_state) {
    $form['handler'] = array(
      '#markup' => t('The selected handler is broken.'),
    );
    return $form;
  }

  /**
   * {@inheritdoc}
   */
  public function getHandlerLabel() {
    return '<em>' . t('Broken/missing handler') . '</em>';
  }

  /**
   * {@inheritdoc}
   */
  public function getSubqueueLabel(EntitySubqueue $subqueue) {
    return '';
  }

}

Members

Namesort descending Modifiers Type Description Overrides
BrokenEntityQueueHandler::getHandlerLabel public function Returns the label of the queue's handler. Overrides EntityQueueHandlerBase::getHandlerLabel
BrokenEntityQueueHandler::getInstance public static function Factory function: creates a new instance of this handler for a queue. Overrides EntityQueueHandlerBase::getInstance
BrokenEntityQueueHandler::getSubqueueLabel public function Returns the label of a given subqueue. Overrides EntityQueueHandlerBase::getSubqueueLabel
BrokenEntityQueueHandler::settingsForm public function Generates a settings form for this handler. Overrides EntityQueueHandlerBase::settingsForm
BrokenEntityQueueHandler::subqueueForm public function Generates an add/edit subqueue form for this handler. Overrides EntityQueueHandlerBase::subqueueForm
EntityQueueHandlerBase::$plugin protected property The handler plugin definition.
EntityQueueHandlerBase::$queue protected property The EntityQueue object.
EntityQueueHandlerBase::canDeleteSubqueue public function Returns TRUE if subqueue can be deleted, otherwise returns FALSE. Overrides EntityQueueHandlerInterface::canDeleteSubqueue 1
EntityQueueHandlerBase::create public function Act on creating a queue. Overrides EntityQueueHandlerInterface::create
EntityQueueHandlerBase::getTargetTypeLabel public function Returns the entity type label of a queue target type. Overrides EntityQueueHandlerInterface::getTargetTypeLabel
EntityQueueHandlerBase::insert public function Act after a new queue is saved. Overrides EntityQueueHandlerInterface::insert 1
EntityQueueHandlerBase::load public function Act on loading a queue. Overrides EntityQueueHandlerInterface::load
EntityQueueHandlerBase::loadFromCode public function Act on loading a queue that is defined only in code. Overrides EntityQueueHandlerInterface::loadFromCode 1
EntityQueueHandlerBase::postDelete public function Act after deleting a queue. Overrides EntityQueueHandlerInterface::postDelete
EntityQueueHandlerBase::preDelete public function Act before deleting a queue. Overrides EntityQueueHandlerInterface::preDelete
EntityQueueHandlerBase::preSave public function Act before a queue is saved. Overrides EntityQueueHandlerInterface::preSave
EntityQueueHandlerBase::update public function Act after a queue is updated. Overrides EntityQueueHandlerInterface::update
EntityQueueHandlerBase::__construct protected function