当前位置: 首页>>代码示例>>PHP>>正文


PHP DisplayPluginBase::submitOptionsForm方法代码示例

本文整理汇总了PHP中Drupal\views\Plugin\views\display\DisplayPluginBase::submitOptionsForm方法的典型用法代码示例。如果您正苦于以下问题:PHP DisplayPluginBase::submitOptionsForm方法的具体用法?PHP DisplayPluginBase::submitOptionsForm怎么用?PHP DisplayPluginBase::submitOptionsForm使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Drupal\views\Plugin\views\display\DisplayPluginBase的用法示例。


在下文中一共展示了DisplayPluginBase::submitOptionsForm方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: submitOptionsForm

 /**
  * Perform any necessary changes to the form values prior to storage.
  * There is no need for this function to actually store the data.
  */
 public function submitOptionsForm(&$form, FormStateInterface $form_state)
 {
     parent::submitOptionsForm($form, $form_state);
     $section = $form_state->get('section');
     switch ($section) {
         case 'block_description':
         case 'block_category':
         case 'allow':
         case 'block_hide_empty':
             $this->setOption($section, $form_state->getValue($section));
             break;
     }
 }
开发者ID:ravibarnwal,项目名称:laraitassociate.in,代码行数:17,代码来源:Block.php

示例2: submitOptionsForm

 /**
  * {@inheritdoc}
  */
 public function submitOptionsForm(&$form, FormStateInterface $form_state)
 {
     parent::submitOptionsForm($form, $form_state);
     switch ($form_state->get('section')) {
         case 'test_option':
             $this->setOption('test_option', $form_state->getValue('test_option'));
             break;
     }
 }
开发者ID:ddrozdik,项目名称:dmaps,代码行数:12,代码来源:DisplayTest.php

示例3: submitOptionsForm

 /**
  * Perform any necessary changes to the form values prior to storage.
  * There is no need for this function to actually store the data.
  */
 public function submitOptionsForm(&$form, FormStateInterface $form_state)
 {
     // It is very important to call the parent function here:
     parent::submitOptionsForm($form, $form_state);
     switch ($form_state['section']) {
         case 'displays':
             $form_state['values'][$form_state['section']] = array_filter($form_state['values'][$form_state['section']]);
         case 'inherit_arguments':
         case 'inherit_pager':
         case 'render_pager':
         case 'inherit_exposed_filters':
         case 'attachment_position':
             $this->setOption($form_state['section'], $form_state['values'][$form_state['section']]);
             break;
     }
 }
开发者ID:anatalsceo,项目名称:en-classe,代码行数:20,代码来源:Attachment.php

示例4: submitOptionsForm

 /**
  * Overrides \Drupal\views\Plugin\views\display\DisplayPluginBase::submitOptionsForm().
  */
 public function submitOptionsForm(&$form, FormStateInterface $form_state)
 {
     parent::submitOptionsForm($form, $form_state);
     if ($form_state->get('section') == 'path') {
         $this->setOption('path', $form_state->getValue('path'));
     }
 }
开发者ID:HakS,项目名称:drupal8_training,代码行数:10,代码来源:PathPluginBase.php

示例5: submitOptionsForm

 /**
  * Overrides \Drupal\views\Plugin\views\display\DisplayPluginBase::submitOptionsForm().
  */
 public function submitOptionsForm(&$form, &$form_state)
 {
     parent::submitOptionsForm($form, $form_state);
     if ($form_state['section'] == 'path') {
         $this->setOption('path', $form_state['values']['path']);
     }
 }
开发者ID:alnutile,项目名称:drunatra,代码行数:10,代码来源:PathPluginBase.php

示例6: submitOptionsForm

 /**
  * Perform any necessary changes to the form values prior to storage.
  * There is no need for this function to actually store the data.
  */
 public function submitOptionsForm(&$form, FormStateInterface $form_state)
 {
     parent::submitOptionsForm($form, $form_state);
     switch ($form_state['section']) {
         case 'block_description':
         case 'block_category':
         case 'allow':
         case 'block_hide_empty':
             $this->setOption($form_state['section'], $form_state['values'][$form_state['section']]);
             break;
     }
 }
开发者ID:anatalsceo,项目名称:en-classe,代码行数:16,代码来源:Block.php

示例7: submitOptionsForm

 /**
  * Overrides Drupal\views\Plugin\views\display\DisplayPluginBase::submitOptionsForm().
  */
 public function submitOptionsForm(&$form, &$form_state)
 {
     parent::submitOptionsForm($form, $form_state);
     switch ($form_state['section']) {
         case 'test_option':
             $this->setOption('test_option', $form_state['values']['test_option']);
             break;
     }
 }
开发者ID:alnutile,项目名称:drunatra,代码行数:12,代码来源:DisplayTest.php


注:本文中的Drupal\views\Plugin\views\display\DisplayPluginBase::submitOptionsForm方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。