meta( 'permanently_locked', true ); } /** * @return bool */ protected function is_atomic_container(): bool { return false; } /** * {@inheritdoc} */ public static function get_element_type(): string { return Smart_Menu::TYPE_LINK; } /** * {@inheritdoc} */ public function get_title() { return __( 'Menu Link', 'reactwoo-atomic' ); } /** * {@inheritdoc} */ public function get_icon() { return 'eicon-link'; } /** * {@inheritdoc} */ protected function should_show_in_panel() { return false; } /** * {@inheritdoc} */ protected static function define_element_props_schema(): array { return array( 'url' => String_Prop_Type::make()->default( '#' ), ); } /** * {@inheritdoc} */ protected function define_settings_controls(): array { return array( Text_Control::bind_to( 'url' )->set_label( __( 'URL', 'reactwoo-atomic' ) ), ); } /** * {@inheritdoc} */ protected function define_allowed_child_types() { return array(); } /** * {@inheritdoc} */ protected function get_templates(): array { return array( 'reactwoo-atomic/smart-menu-link' => __DIR__ . '/templates/smart-menu-link.html.twig', ); } }