TYPO3 CMS  TYPO3_6-2
ProcessAvailableActionsViewHelper.php
Go to the documentation of this file.
1 <?php
3 
24 
25  const SIGNAL_ProcessActions = 'processActions';
26 
32 
39  public function render($extension) {
40  $html = $this->renderChildren();
41  $actions = preg_split('#\\n\\s*#s', trim($html));
42 
43  $actions = $this->emitProcessActionsSignal($extension, $actions);
44 
45  return implode(' ', $actions);
46  }
47 
55  protected function emitProcessActionsSignal($extension, array $actions) {
56  $this->signalSlotDispatcher->dispatch(
57  __CLASS__,
58  static::SIGNAL_ProcessActions,
59  array(
60  $extension,
61  &$actions,
62  )
63  );
64  return $actions;
65  }
66 
67 }