Skip to main content

Posts

Showing posts from March, 2019

Drupal 8 : Link actions,Link menus,Link Tasks,Routings

Drupal 8 : Link actions,Link menus,Link Tasks,Routings Link actions Local actions have also been moved out of the hook_menu() system in Drupal 8 .Use actions to define local operations such as adding new items to an administrative list (menus, contact categories, etc). Local actions are defined in a YAML format, named after the module they are defined by. Such as menu_ui.links.action.yml for this example from menu_ui module: menu_ui.link_add:   route_name: menu_ui.link_add   title: 'Add link'   appears_on:     - menu_ui.menu_edit Here, menu_ui.link_add: It is the Unique name of the link action Most likely start with module name, route_name : Name of the route it means when click the link it redirect to this route, appears_on :  An array of route names for this action to be display on. Now how to know the Route name of any internal/external admin pages like below, By through the drupal console we achieve it, drupal debug:router...

Angular Introduction

Start Angular Application: There are two types of angular , Angular Js & Angular CLI, We are going to dive in to the Angular CLI: Welcome to Angular! Angular helps you build modern applications for the web, mobile, or desktop. Before you begin, make sure your development environment includes  Node.js ®  and an npm package manager. 1 -  Node.js :  Angular requires  Node.js  version 8.x or 10.x.             To check your node js version use node -v 2 -   npm package manager :  Angular, the Angular CLI, and Angular apps depend on features and functionality provided by libraries that are available as  npm packages Install The latest Version of the Node as well as npm: sudo apt-get install curl python-software-properties curl -sL https://deb.nodesource.com/setup_11.x | sudo -E bash - sudo apt-get install nodejs Step 1: Install the Angular CLI:  Install the Angular CLI globally. npm i...