• Header Sidebar Title Text

    One Place Web Resources

    Your Ultimate Destination for all the Coding Needs

    Have your questions answered from the industry pros and get your hands on exclusive code snippets, plugins, themes and a lot more.

  • Web Design Inspiration

    Web Design Ideas, Inspiration for Designers

    We find Best Designed Websites in the World and share with designers.

    Fantastic websites gallery and showcase of the best web design inspiration for designers updated regularly with new designs.

  • Premium PluginsNo Comments

    default thumbnail

    Shortcodes API for Drupal 8 provides shortcodes filter framework and API (application programming interface). It’s perfect to display custom content using simple shortcodes.

    The Shortcodes API for Drupal 8 is a simple set of methods for creating Drupal 8 shortcodes for use in text fields, modules and themes.

    The API enables developers to create special kinds of content that users can attach to certain content by adding the corresponding shortcode into the text fields or processing it in a theme’s or a module’s methods.

    The API handles all the tricky parsing, eliminating the need for writing a custom regular expression for each shortcode. Helper functions are included for setting and fetching default attributes. The API supports both, self-closing and enclosing shortcodes.

    DEMO: http://www.templago.com/demo/d8/shortcodes

    Be the first to post a comment.

    Add a comment

    آپلود عکس