class MultipleEntityQueueHandler in Entityqueue 7
A multiple subqueue queue implementation.
Hierarchy
- class \EntityQueueHandlerBase implements EntityQueueHandlerInterface
- class \SimpleEntityQueueHandler
- class \MultipleEntityQueueHandler
- class \SimpleEntityQueueHandler
Expanded class hierarchy of MultipleEntityQueueHandler
1 string reference to 'MultipleEntityQueueHandler'
- multiple.inc in plugins/
entityqueue/ handler/ multiple.inc
File
- plugins/
entityqueue/ handler/ MultipleEntityQueueHandler.class.php, line 11 - Contains Entityqueue handler for simple queues with multiple subqueues.
View source
class MultipleEntityQueueHandler extends SimpleEntityQueueHandler {
/**
* {@inheritdoc}
*/
public function subqueueForm(EntitySubqueue $subqueue, &$form_state) {
$values = (array) $subqueue;
if (isset($form_state['values']) && !empty($form_state['values'])) {
$values = $form_state['values'] + $values;
}
$form = array();
$form['label'] = array(
'#type' => 'textfield',
'#title' => t('Subqueue label'),
'#required' => TRUE,
'#default_value' => isset($values['label']) ? $values['label'] : '',
);
$form['name'] = array(
'#type' => 'machine_name',
'#title' => t('Subqueue name'),
'#required' => TRUE,
'#default_value' => isset($values['name']) ? $values['name'] : '',
'#machine_name' => array(
'exists' => 'entityqueue_subqueue_load',
'source' => array(
'label',
),
),
'#disabled' => isset($subqueue->subqueue_id),
);
return $form;
}
/**
* {@inheritdoc}
*/
public function loadFromCode() {
}
/**
* {@inheritdoc}
*/
public function insert() {
}
/**
* {@inheritdoc}
*/
public function canDeleteSubqueue(EntitySubqueue $subqueue) {
return TRUE;
}
}