コード例 #1
0
 /**
  * Build
  *
  * @param UiComponentInterface $component
  * @return array
  */
 public function build(UiComponentInterface $component)
 {
     $this->component = $component;
     $this->namespace = $component->getContext()->getNamespace();
     $this->addNavigationBlock();
     // Initialization of structure components
     $this->initSections();
     $this->initAreas();
     return parent::build($component);
 }
コード例 #2
0
ファイル: Tabs.php プロジェクト: pradeep-wagento/magento2
 /**
  * Build
  *
  * @param UiComponentInterface $component
  * @return array
  */
 public function build(UiComponentInterface $component)
 {
     $this->component = $component;
     $this->namespace = $component->getContext()->getNamespace();
     $this->addNavigationBlock();
     // Register html content element
     $this->component->getContext()->addComponentDefinition('html_content', ['component' => 'Magento_Ui/js/form/components/html', 'extends' => $this->namespace]);
     // Initialization of structure components
     $this->initSections();
     $this->initAreas();
     return parent::build($component);
 }