The document provides an overview of migrating content from WordPress to Drupal 8 using the Drupal migrate module. It describes creating a migration group configuration and custom WordPress post source and destination plugins to map WordPress post content like title, date, and body to Drupal node entities. Processors are used to handle formatting of body content migrated from Visual Composer.
This document discusses render caching in Drupal 8. It begins with an overview of how render caching worked in Drupal 7 using render arrays and the #cache property. It then explains the changes in Drupal 8, including using cache keys, contexts, tags, and max-age in the #cache property. Additional topics covered include lazy loading, cache tagging bubbling, common issues, and troubleshooting techniques.
This is a talk I presented at University Limerick to give people an introduction into CouchDB.
What is it? How does it generally work? Introducing new concepts, etc.
The document discusses optimizing Drupal using MongoDB. It provides an agenda for the discussion, including an introduction to MongoDB and how to install and configure it for use with Drupal. The benefits of using MongoDB with Drupal are highlighted, with a focus on speed, scale, and simplicity compared to traditional SQL databases. Examples are given showing how document-based data storage in MongoDB can more flexibly support different data models compared to relational databases.
Scaling up and accelerating Drupal 8 with NoSQLOSInet
Drupal 8 can scale well and serve pages fast to many users, especially by offloading parts of the work load from the main SQL database to NoSQL solutions.
This presentation describes the strategies and technologies usable to achieve such gains, including specific configuration, contributed modules and custom coding strategies.
This document discusses applying SOLID principles to infrastructure as code. It provides an overview of roles and profiles in infrastructure as code and how they relate to design patterns like Model View Controller (MVC). It also explains the five SOLID principles - single responsibility, open/closed, Liskov substitution, interface segregation and dependency inversion - and provides examples of applying them to infrastructure code through techniques like defining types, relationships between defined types and profiles, and creating abstract/generic defined types.
This document provides a practical guide to caching data with Zend Server. It introduces the Zend Data Cache API and shows how to cache the results of a function that retrieves recent blog posts from a database. The function is modified to first check the cache for the results before querying the database. If no results are found in the cache, it queries the database and stores the results in the cache. By caching frequently accessed data, significant performance improvements can be achieved by reducing database queries. The document also discusses best practices for caching, such as profiling applications to identify bottlenecks and determining appropriate cache lifetimes based on how often data changes.
What's New in Drupal 8: Entity Field APIDrupalize.Me
In this presentation we take a high-level look at the new Drupal 8 Entity Field API. To view this presentation as a video, go to https://drupalize.me/videos/whats-new-drupal-8-entity-field-api?p=2075. This video is part of a series examining What's New in Drupal 8 and is produced by Drupalize.Me.
Doctrine MongoDB ODM is an object document mapper for PHP that provides tools for managing object persistence with MongoDB. It allows developers to work with MongoDB documents as objects and provides a query API and change tracking functionality to make common operations like inserting, updating, and deleting documents straightforward. Doctrine abstracts away the low-level MongoDB driver to allow developers to work with documents and references between documents using familiar object-oriented patterns.
This document discusses render caching in Drupal 8. It begins with an overview of how render caching worked in Drupal 7 using render arrays and the #cache property. It then explains the changes in Drupal 8, including using cache keys, contexts, tags, and max-age in the #cache property. Additional topics covered include lazy loading, cache tagging bubbling, common issues, and troubleshooting techniques.
This is a talk I presented at University Limerick to give people an introduction into CouchDB.
What is it? How does it generally work? Introducing new concepts, etc.
The document discusses optimizing Drupal using MongoDB. It provides an agenda for the discussion, including an introduction to MongoDB and how to install and configure it for use with Drupal. The benefits of using MongoDB with Drupal are highlighted, with a focus on speed, scale, and simplicity compared to traditional SQL databases. Examples are given showing how document-based data storage in MongoDB can more flexibly support different data models compared to relational databases.
Scaling up and accelerating Drupal 8 with NoSQLOSInet
Drupal 8 can scale well and serve pages fast to many users, especially by offloading parts of the work load from the main SQL database to NoSQL solutions.
This presentation describes the strategies and technologies usable to achieve such gains, including specific configuration, contributed modules and custom coding strategies.
This document discusses applying SOLID principles to infrastructure as code. It provides an overview of roles and profiles in infrastructure as code and how they relate to design patterns like Model View Controller (MVC). It also explains the five SOLID principles - single responsibility, open/closed, Liskov substitution, interface segregation and dependency inversion - and provides examples of applying them to infrastructure code through techniques like defining types, relationships between defined types and profiles, and creating abstract/generic defined types.
This document provides a practical guide to caching data with Zend Server. It introduces the Zend Data Cache API and shows how to cache the results of a function that retrieves recent blog posts from a database. The function is modified to first check the cache for the results before querying the database. If no results are found in the cache, it queries the database and stores the results in the cache. By caching frequently accessed data, significant performance improvements can be achieved by reducing database queries. The document also discusses best practices for caching, such as profiling applications to identify bottlenecks and determining appropriate cache lifetimes based on how often data changes.
What's New in Drupal 8: Entity Field APIDrupalize.Me
In this presentation we take a high-level look at the new Drupal 8 Entity Field API. To view this presentation as a video, go to https://drupalize.me/videos/whats-new-drupal-8-entity-field-api?p=2075. This video is part of a series examining What's New in Drupal 8 and is produced by Drupalize.Me.
Doctrine MongoDB ODM is an object document mapper for PHP that provides tools for managing object persistence with MongoDB. It allows developers to work with MongoDB documents as objects and provides a query API and change tracking functionality to make common operations like inserting, updating, and deleting documents straightforward. Doctrine abstracts away the low-level MongoDB driver to allow developers to work with documents and references between documents using familiar object-oriented patterns.
This document provides an overview of Doctrine MongoDB ODM (Object Document Mapper). It discusses what Doctrine is, what MongoDB is, basic MongoDB terminology, how to connect to and perform CRUD operations in MongoDB from PHP, and how Doctrine MongoDB ODM provides an abstraction layer and object mapping functionality for MongoDB documents.
IndexedDB is an exciting option for offline storage in the HTML5 sites and applications that you build. The API's not ready yet, but it's important to play now, and feed your experience into the standards process.
Building performance auf der Developer Conference HamburgOliver Ochs
Die Geschwindigkeit einer Website ist in entscheidendem Maße für den Umsatz mitverantwortlich. Ein wesentlicher Faktor hierbei ist die Zeit für das Laden und Rendern von Seiten im Browser. Steve Souders zeigte beispielsweise, dass ca. 80% der Ladezeit einer Seite im Client verbraucht werden. Im ersten Teil des Vortrags stellen wir die wichtigsten Optimierungsmaßnahmen vor. Für eine dauerhafte, nachhaltige Performance-Optimierung müssen die Maßnahmen automatisiert bzw. in den Build-Prozess integriert werden. Im zweiten Teil des Vortrags zeigen wir einen beispielhaften Build-Prozess für Java-Webanwendungen, der Teile der Optimierungsmaßnahmen durchführt. Andere Teile müssen durch eine geeignete Architektur sichergestellt werden, wofür wir ebenfalls Ideen liefern
This document discusses changes to the Field API from Drupal 7 to Drupal 8. In Drupal 8, fields are classes that implement interfaces and can be base fields or configurable fields. The Field API was rewritten using the Entity API and Typed Data API, treating fields as entities. Fields now have formatters and widgets that are defined as plugins. Validators are implemented using the new Validation API. Accessing field data is abstracted through magic methods. The document provides examples of defining formatters and widgets as plugins in Drupal 8.
This document provides an overview of the Field API in Drupal. It discusses key terminology like entities, field types, and bundles. It also demonstrates how to implement a field formatter and widget using hooks. Finally, it covers language handling and retrieving field data via the Entity API. The presentation aims to provide practical tips and examples for working with fields and entities in Drupal.
This document discusses migrating from Drupal 6 and 7 to Drupal 8. It provides an overview of the Migrate module, which allows importing content and configuration from other Drupal versions or external systems. Key aspects covered include the source and destination plugins, processing pipelines, and the overall migration workflow of mapping, processing and importing data. Examples of how to configure and execute migrations using Drush or custom code are also presented.
CouchApps are web applications built using CouchDB, JavaScript, and HTML5. CouchDB is a document-oriented database that stores JSON documents, has a RESTful HTTP API, and is queried using map/reduce views. This talk will answer your basic questions about CouchDB, but will focus on building CouchApps and related tools.
Migrating to Drupal 8: How to Migrate Your Content and Minimize the RisksAcquia
Migrating to Drupal 8 might seem like a daunting task, but it doesn’t have to be. Sometimes, it is possible to migrate simply. Other times, the needs of the migration require customization of the migration, which can introduce significant challenges. However, with the right planning and processes in place, effectively migrating your content can be easy.
In this webinar, learn about the processes needed to effectively migrate your content to Drupal 8 from Drupal 6 or 7. We’ll cover the steps in the 5 phases of an effective migration: auditing your source site, planning a data model, prepping for and planning your migration strategy, and inevitably, launching the migration. Attendees will walk away with a deeper understanding of:
-How to audit your bundles, fields, and entities
-The steps to determine what needs to stay, go, and be modified
-How to work with the Migrate API and extend functionality with contrib migration modules
-The process to set up near-continuous migration of content in order to minimize downtime
-Ways to effectively create and implement a risk mitigation plan
The document discusses various techniques for improving web performance, including:
1. Reducing the number of server requests by concatenating CSS and JavaScript files, using CSS sprites for images, and inlining small images and resources.
2. Optimizing front-end performance by putting stylesheets at the top, scripts at the bottom, loading scripts asynchronously, and batching DOM and CSS changes.
3. Understanding that performance optimizations involve tradeoffs and that the rules can conflict depending on specific user, site, and technical factors. Optimization requires testing across environments.
Drupal isn't a content management system. It's an application development platform that happens to ship with a great CMS as it's default implementation. Look at any chart comparing features of development frameworks and you'll see user management and authentication, forms management and validation, data storage, database migrations, internationalization and translation, MVC model with flexible templating, unit testing, and caching. Sounds a lot like Drupal. We'll look at why Drupal is an ideal application development platform for apps beyond content management, talk about where Drupal can improve in these areas, and look at an example application.
Here are the key steps to load data from a RESTful service using AJAX and jQuery:
1. Make an AJAX GET request to the REST API endpoint using jQuery.ajax() or jQuery.getJSON().
2. Specify the URL, set the data type to "json", and provide a success callback.
3. On success, the JSON response will be passed to the callback function where it can be used to update the UI.
4. Parse the JSON response into a JavaScript object for easy access to the data.
5. Update the HTML using the jQuery DOM manipulation methods like html(), text(), etc.
So in summary - make an AJAX GET, parse the JSON response,
The document discusses various techniques for improving web page performance. It explains that most of the time spent by users is during front-end rendering of pages in the browser. It provides strategies for reducing page load time such as minimizing the number of server requests, compressing responses, optimizing resource delivery through techniques like concatenation and caching, and improving browser rendering performance through practices like deferred parsing of JavaScript. The document emphasizes that performance optimization requires understanding tradeoffs and adapting techniques based on user capabilities and environment characteristics.
The document discusses the Render API in Drupal 7 as a successor to the Form API and theme system in Drupal 6. It describes three ways to build the presentation layer: the noob way using inline PHP, the Drupal 6 way using theme functions, and the Drupal 7 way using renderable arrays. Renderable arrays allow content to be altered in a common way and provide advantages like transparent caching and attaching resources. Key aspects of the Render API covered include hook_theme, the renderable array structure, content altering functions, and performance/caching techniques.
Kharkivpy#3: Javascript and Python backendMax Klymyshyn
The document discusses managing assets like JavaScript, CSS, and templates for web projects. It recommends adding asset management tools to define conventions and bundle assets. This improves the maintainability of code and makes it easier to manage dependencies and test updates. It also covers techniques like bundling browser-specific assets, using Sass/SCSS for stylesheets, and deploying assets to a CDN like Amazon CloudFront.
1. Spring Data MongoDB provides a template-style support for accessing MongoDB data through Spring, including the MongoTemplate class and related interfaces and classes.
2. It offers a Java-based query interface using Query and Criteria classes and repository programming approach using Repository interfaces.
3. The core MongoTemplate class implements the MongoOperations interface and provides convenient CRUD operations while handling exceptions as Spring DataAccessExceptions.
Varnish Cache and its usage in the real world!Ivan Chepurnyi
Ivan Chepurnyi discussed Varnish Cache and its usage in Magento. Varnish is a frontend caching proxy that caches static and dynamic content to improve site performance. It works by caching responses from the backend server and delivering cached responses to subsequent requests when possible. Ivan described how to use the EcomDev_Varnish module to implement dynamic content, custom caching rules, and automatic cache clearing in Magento with Varnish. He also compared Varnish to Magento's built-in full page cache and outlined his open source roadmap for 2014.
The document provides an overview of best practices for configuring and using Spring frameworks. It discusses techniques for streamlining Spring configuration through annotations and external properties files. It also covers topics like caching with AOP, transactions, Spring MVC, and Spring Security. The presentation is aimed at sharing tips for improving code organization, performance, and security when building applications with Spring.
This document provides an overview of migrating from Drupal 7 to Drupal 8 using the Migrate module. It discusses the differences between updates and upgrades in Drupal and explains that the Migrate module allows migrating content and configuration between different versions of Drupal or other data sources. It then describes the key components of migrations, including plugins for sources, destinations, and processing; and explains how to define a sample migration by creating configuration files and classes. Migrations are run via Drush. Minor version updates continue to use hook updates while major upgrades from Drupal 7 to 8 are encouraged to include migrations.
This document provides an overview of Doctrine MongoDB ODM (Object Document Mapper). It discusses what Doctrine is, what MongoDB is, basic MongoDB terminology, how to connect to and perform CRUD operations in MongoDB from PHP, and how Doctrine MongoDB ODM provides an abstraction layer and object mapping functionality for MongoDB documents.
IndexedDB is an exciting option for offline storage in the HTML5 sites and applications that you build. The API's not ready yet, but it's important to play now, and feed your experience into the standards process.
Building performance auf der Developer Conference HamburgOliver Ochs
Die Geschwindigkeit einer Website ist in entscheidendem Maße für den Umsatz mitverantwortlich. Ein wesentlicher Faktor hierbei ist die Zeit für das Laden und Rendern von Seiten im Browser. Steve Souders zeigte beispielsweise, dass ca. 80% der Ladezeit einer Seite im Client verbraucht werden. Im ersten Teil des Vortrags stellen wir die wichtigsten Optimierungsmaßnahmen vor. Für eine dauerhafte, nachhaltige Performance-Optimierung müssen die Maßnahmen automatisiert bzw. in den Build-Prozess integriert werden. Im zweiten Teil des Vortrags zeigen wir einen beispielhaften Build-Prozess für Java-Webanwendungen, der Teile der Optimierungsmaßnahmen durchführt. Andere Teile müssen durch eine geeignete Architektur sichergestellt werden, wofür wir ebenfalls Ideen liefern
This document discusses changes to the Field API from Drupal 7 to Drupal 8. In Drupal 8, fields are classes that implement interfaces and can be base fields or configurable fields. The Field API was rewritten using the Entity API and Typed Data API, treating fields as entities. Fields now have formatters and widgets that are defined as plugins. Validators are implemented using the new Validation API. Accessing field data is abstracted through magic methods. The document provides examples of defining formatters and widgets as plugins in Drupal 8.
This document provides an overview of the Field API in Drupal. It discusses key terminology like entities, field types, and bundles. It also demonstrates how to implement a field formatter and widget using hooks. Finally, it covers language handling and retrieving field data via the Entity API. The presentation aims to provide practical tips and examples for working with fields and entities in Drupal.
This document discusses migrating from Drupal 6 and 7 to Drupal 8. It provides an overview of the Migrate module, which allows importing content and configuration from other Drupal versions or external systems. Key aspects covered include the source and destination plugins, processing pipelines, and the overall migration workflow of mapping, processing and importing data. Examples of how to configure and execute migrations using Drush or custom code are also presented.
CouchApps are web applications built using CouchDB, JavaScript, and HTML5. CouchDB is a document-oriented database that stores JSON documents, has a RESTful HTTP API, and is queried using map/reduce views. This talk will answer your basic questions about CouchDB, but will focus on building CouchApps and related tools.
Migrating to Drupal 8: How to Migrate Your Content and Minimize the RisksAcquia
Migrating to Drupal 8 might seem like a daunting task, but it doesn’t have to be. Sometimes, it is possible to migrate simply. Other times, the needs of the migration require customization of the migration, which can introduce significant challenges. However, with the right planning and processes in place, effectively migrating your content can be easy.
In this webinar, learn about the processes needed to effectively migrate your content to Drupal 8 from Drupal 6 or 7. We’ll cover the steps in the 5 phases of an effective migration: auditing your source site, planning a data model, prepping for and planning your migration strategy, and inevitably, launching the migration. Attendees will walk away with a deeper understanding of:
-How to audit your bundles, fields, and entities
-The steps to determine what needs to stay, go, and be modified
-How to work with the Migrate API and extend functionality with contrib migration modules
-The process to set up near-continuous migration of content in order to minimize downtime
-Ways to effectively create and implement a risk mitigation plan
The document discusses various techniques for improving web performance, including:
1. Reducing the number of server requests by concatenating CSS and JavaScript files, using CSS sprites for images, and inlining small images and resources.
2. Optimizing front-end performance by putting stylesheets at the top, scripts at the bottom, loading scripts asynchronously, and batching DOM and CSS changes.
3. Understanding that performance optimizations involve tradeoffs and that the rules can conflict depending on specific user, site, and technical factors. Optimization requires testing across environments.
Drupal isn't a content management system. It's an application development platform that happens to ship with a great CMS as it's default implementation. Look at any chart comparing features of development frameworks and you'll see user management and authentication, forms management and validation, data storage, database migrations, internationalization and translation, MVC model with flexible templating, unit testing, and caching. Sounds a lot like Drupal. We'll look at why Drupal is an ideal application development platform for apps beyond content management, talk about where Drupal can improve in these areas, and look at an example application.
Here are the key steps to load data from a RESTful service using AJAX and jQuery:
1. Make an AJAX GET request to the REST API endpoint using jQuery.ajax() or jQuery.getJSON().
2. Specify the URL, set the data type to "json", and provide a success callback.
3. On success, the JSON response will be passed to the callback function where it can be used to update the UI.
4. Parse the JSON response into a JavaScript object for easy access to the data.
5. Update the HTML using the jQuery DOM manipulation methods like html(), text(), etc.
So in summary - make an AJAX GET, parse the JSON response,
The document discusses various techniques for improving web page performance. It explains that most of the time spent by users is during front-end rendering of pages in the browser. It provides strategies for reducing page load time such as minimizing the number of server requests, compressing responses, optimizing resource delivery through techniques like concatenation and caching, and improving browser rendering performance through practices like deferred parsing of JavaScript. The document emphasizes that performance optimization requires understanding tradeoffs and adapting techniques based on user capabilities and environment characteristics.
The document discusses the Render API in Drupal 7 as a successor to the Form API and theme system in Drupal 6. It describes three ways to build the presentation layer: the noob way using inline PHP, the Drupal 6 way using theme functions, and the Drupal 7 way using renderable arrays. Renderable arrays allow content to be altered in a common way and provide advantages like transparent caching and attaching resources. Key aspects of the Render API covered include hook_theme, the renderable array structure, content altering functions, and performance/caching techniques.
Kharkivpy#3: Javascript and Python backendMax Klymyshyn
The document discusses managing assets like JavaScript, CSS, and templates for web projects. It recommends adding asset management tools to define conventions and bundle assets. This improves the maintainability of code and makes it easier to manage dependencies and test updates. It also covers techniques like bundling browser-specific assets, using Sass/SCSS for stylesheets, and deploying assets to a CDN like Amazon CloudFront.
1. Spring Data MongoDB provides a template-style support for accessing MongoDB data through Spring, including the MongoTemplate class and related interfaces and classes.
2. It offers a Java-based query interface using Query and Criteria classes and repository programming approach using Repository interfaces.
3. The core MongoTemplate class implements the MongoOperations interface and provides convenient CRUD operations while handling exceptions as Spring DataAccessExceptions.
Varnish Cache and its usage in the real world!Ivan Chepurnyi
Ivan Chepurnyi discussed Varnish Cache and its usage in Magento. Varnish is a frontend caching proxy that caches static and dynamic content to improve site performance. It works by caching responses from the backend server and delivering cached responses to subsequent requests when possible. Ivan described how to use the EcomDev_Varnish module to implement dynamic content, custom caching rules, and automatic cache clearing in Magento with Varnish. He also compared Varnish to Magento's built-in full page cache and outlined his open source roadmap for 2014.
The document provides an overview of best practices for configuring and using Spring frameworks. It discusses techniques for streamlining Spring configuration through annotations and external properties files. It also covers topics like caching with AOP, transactions, Spring MVC, and Spring Security. The presentation is aimed at sharing tips for improving code organization, performance, and security when building applications with Spring.
This document provides an overview of migrating from Drupal 7 to Drupal 8 using the Migrate module. It discusses the differences between updates and upgrades in Drupal and explains that the Migrate module allows migrating content and configuration between different versions of Drupal or other data sources. It then describes the key components of migrations, including plugins for sources, destinations, and processing; and explains how to define a sample migration by creating configuration files and classes. Migrations are run via Drush. Minor version updates continue to use hook updates while major upgrades from Drupal 7 to 8 are encouraged to include migrations.
Minerva is a storage plugin of Drill that connects IPFS's decentralized storage and Drill's flexible query engine. Any data file stored on IPFS can be easily accessed from Drill's query interface, just like a file stored on a local disk.
Visit https://github.com/bdchain/Minerva to learn more and try it out!
The document provides an overview of the key changes between Drupal 6 and Drupal 7 and guidance on upgrading or migrating a site from Drupal 6 to Drupal 7. It discusses major changes like modules incorporated into the Drupal core, database changes, and theme changes. It also outlines the process for upgrading modules, migrating content like CCK fields, and tools that can help like the Migrate and Backup and Migrate modules. Special considerations for the upgrade/migration like security, PHP settings, and file handling are also covered.
My presentation from Drupal Camp Lutsk 2017 where I was describing Migration process at Drupal 8.
Goal of this presentation is to understand what to do if you get Migration task and make it simple and stable for developer.
This document provides information about migrating from Drupal 7 to Drupal 8. It discusses the differences between updates and upgrades in Drupal and explains the migrate module. It also provides disclaimers about the migrate system currently being under heavy development. The document then describes how to create a configuration file to migrate user roles from a Drupal 6 site to Drupal 8. It explains the different parts of a migration plugin, including the source, destination, ID map, and processors.
Open Event is a distribution of Drupal that enables any one to automatically expose their site content in a reliable and structured way as a JSON API, enabling an extra degree of control over the output.
It’s no longer a world of just relational databases. Companies are increasingly adopting specialized datastores such as Hadoop, HBase, MongoDB, Elasticsearch, Solr and S3. Apache Drill, an open source, in-memory, columnar SQL execution engine, enables interactive SQL queries against more datastores.
A simple Drupal 7 to Drupal 8 Migration.
With its new prominent features, Drupal 8 will set the standards in terms of offering numerous ways to customise website content, display data on mobile devices and build API’s.
Due to the modern OOP (Object Oriented Programming) approach, it gives us a simpler migration process from its predecessor, with in-place content editing tools, along with a broad array of new themes.
The document provides information about migrating content from Drupal 6 and 7 websites to Drupal 8. It includes:
- Statistics on the number of websites on each source platform
- An overview of the migration process using the Migrate Upgrade module to generate templates, export them, edit them, reimport and execute migrations.
- Tips for common migration challenges like mapping fields and handling chicken-and-egg dependencies.
The Myths, Musts and Migraines of Migrations - DrupalJam 2018LimoenGroen
Bijna elke organisatie heeft een online presence. Maar niet altijd in Drupal en soms met flinke hoeveelheden content die niet verloren mogen gaan. In dat geval is een datamigratie onvermijdelijk. Op DrupalJam 2018 liet Marc van Gend zien hoe het Migrate systeem van Drupal uitkomst biedt, in migraties van niet-Drupal naar Drupal versie 8.
This document provides an overview of Drupal 7's Database API. It describes the database connection and query classes, including SelectQuery, DeleteQuery, UpdateQuery, and InsertQuery. It also covers logging queries with DatabaseLog, running transactions with db_transaction(), and handling errors. Links are provided for additional documentation on the Drupal database API.
Open Event is a Drupal distribution and open source project that aims to empower cultural organizations to manage and publish events online. It provides a content management system built around an Open Data Model that represents events and automatically publishes event data through a self-documented API. The distribution can be used out of the box or customized further. It takes an open approach focused on extensibility, flexibility, and sharing data in standard formats like Schema.org to make cultural events more accessible.
Web automation with #d8rules (European Drupal Days 2015)Eugenio Minardi
This document contains information about a Rules presentation at DrupalDaysEU, including:
- Details about the Rules module and how it enables flexible workflows in Drupal 8.
- An overview of the goals of the #d8rules campaign to ensure Rules is ready for Drupal 8 and to make Drupal contributions more sustainable.
- A brief status update on the development of Rules for Drupal 8, including milestones for core API fundamentals, completion, and release.
- An invitation for developers to sprint with the Rules team and contribute to porting actions, conditions and other components to Drupal 8.
This document provides tips and best practices for staying sane as a Drupal developer. It discusses that 80% of building Drupal sites is configuration, while the remaining 20% requires customization. It emphasizes using Drupal APIs and hooks, playing well with contributed modules, and following coding standards and best practices like version control, automated testing and deployment, and documentation.
SQL Server 2016 introduces new features for business intelligence and reporting. PolyBase allows querying data across SQL Server and Hadoop using T-SQL. Integration Services has improved support for AlwaysOn availability groups and incremental package deployment. Reporting Services adds HTML5 rendering, PowerPoint export, and the ability to pin report items to Power BI dashboards. Mobile Report Publisher enables developing and publishing mobile reports.
Migrating data to Drupal 8 involves using the Migrate and Migrate Drupal modules to define migrations from other systems. The key steps are:
1. Require the Migrate and Migrate Drupal modules
2. Define the migration using YAML configuration that specifies the source, process mappings, and destination
3. Build source and process plugins to query the source data and map fields
4. Execute migrations with Drush commands to import data into Drupal 8
Migrating between Drupal versions (D2D) can also be done using the Migrate Drupal module, which includes predefined migrations that can be customized if needed.
The document discusses preparing to migrate a Drupal site from versions 6/7 to Drupal 8. It outlines the most tempting features of D8, such as improved performance and configuration management. It also covers analyzing modules for migration, available migration support from Drupal for different elements like content and users, known issues to watch out for, and how to execute migrations using the Migrate Upgrade module UI or via Drush commands.
Introducing Milvus Lite: Easy-to-Install, Easy-to-Use vector database for you...Zilliz
Join us to introduce Milvus Lite, a vector database that can run on notebooks and laptops, share the same API with Milvus, and integrate with every popular GenAI framework. This webinar is perfect for developers seeking easy-to-use, well-integrated vector databases for their GenAI apps.
Essentials of Automations: The Art of Triggers and Actions in FMESafe Software
In this second installment of our Essentials of Automations webinar series, we’ll explore the landscape of triggers and actions, guiding you through the nuances of authoring and adapting workspaces for seamless automations. Gain an understanding of the full spectrum of triggers and actions available in FME, empowering you to enhance your workspaces for efficient automation.
We’ll kick things off by showcasing the most commonly used event-based triggers, introducing you to various automation workflows like manual triggers, schedules, directory watchers, and more. Plus, see how these elements play out in real scenarios.
Whether you’re tweaking your current setup or building from the ground up, this session will arm you with the tools and insights needed to transform your FME usage into a powerhouse of productivity. Join us to discover effective strategies that simplify complex processes, enhancing your productivity and transforming your data management practices with FME. Let’s turn complexity into clarity and make your workspaces work wonders!
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...SOFTTECHHUB
The choice of an operating system plays a pivotal role in shaping our computing experience. For decades, Microsoft's Windows has dominated the market, offering a familiar and widely adopted platform for personal and professional use. However, as technological advancements continue to push the boundaries of innovation, alternative operating systems have emerged, challenging the status quo and offering users a fresh perspective on computing.
One such alternative that has garnered significant attention and acclaim is Nitrux Linux 3.5.0, a sleek, powerful, and user-friendly Linux distribution that promises to redefine the way we interact with our devices. With its focus on performance, security, and customization, Nitrux Linux presents a compelling case for those seeking to break free from the constraints of proprietary software and embrace the freedom and flexibility of open-source computing.
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...James Anderson
Effective Application Security in Software Delivery lifecycle using Deployment Firewall and DBOM
The modern software delivery process (or the CI/CD process) includes many tools, distributed teams, open-source code, and cloud platforms. Constant focus on speed to release software to market, along with the traditional slow and manual security checks has caused gaps in continuous security as an important piece in the software supply chain. Today organizations feel more susceptible to external and internal cyber threats due to the vast attack surface in their applications supply chain and the lack of end-to-end governance and risk management.
The software team must secure its software delivery process to avoid vulnerability and security breaches. This needs to be achieved with existing tool chains and without extensive rework of the delivery processes. This talk will present strategies and techniques for providing visibility into the true risk of the existing vulnerabilities, preventing the introduction of security issues in the software, resolving vulnerabilities in production environments quickly, and capturing the deployment bill of materials (DBOM).
Speakers:
Bob Boule
Robert Boule is a technology enthusiast with PASSION for technology and making things work along with a knack for helping others understand how things work. He comes with around 20 years of solution engineering experience in application security, software continuous delivery, and SaaS platforms. He is known for his dynamic presentations in CI/CD and application security integrated in software delivery lifecycle.
Gopinath Rebala
Gopinath Rebala is the CTO of OpsMx, where he has overall responsibility for the machine learning and data processing architectures for Secure Software Delivery. Gopi also has a strong connection with our customers, leading design and architecture for strategic implementations. Gopi is a frequent speaker and well-known leader in continuous delivery and integrating security into software delivery.
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slackshyamraj55
Discover the seamless integration of RPA (Robotic Process Automation), COMPOSER, and APM with AWS IDP enhanced with Slack notifications. Explore how these technologies converge to streamline workflows, optimize performance, and ensure secure access, all while leveraging the power of AWS IDP and real-time communication via Slack notifications.
Sudheer Mechineni, Head of Application Frameworks, Standard Chartered Bank
Discover how Standard Chartered Bank harnessed the power of Neo4j to transform complex data access challenges into a dynamic, scalable graph database solution. This keynote will cover their journey from initial adoption to deploying a fully automated, enterprise-grade causal cluster, highlighting key strategies for modelling organisational changes and ensuring robust disaster recovery. Learn how these innovations have not only enhanced Standard Chartered Bank’s data infrastructure but also positioned them as pioneers in the banking sector’s adoption of graph technology.
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdfPaige Cruz
Monitoring and observability aren’t traditionally found in software curriculums and many of us cobble this knowledge together from whatever vendor or ecosystem we were first introduced to and whatever is a part of your current company’s observability stack.
While the dev and ops silo continues to crumble….many organizations still relegate monitoring & observability as the purview of ops, infra and SRE teams. This is a mistake - achieving a highly observable system requires collaboration up and down the stack.
I, a former op, would like to extend an invitation to all application developers to join the observability party will share these foundational concepts to build on:
UiPath Test Automation using UiPath Test Suite series, part 6DianaGray10
Welcome to UiPath Test Automation using UiPath Test Suite series part 6. In this session, we will cover Test Automation with generative AI and Open AI.
UiPath Test Automation with generative AI and Open AI webinar offers an in-depth exploration of leveraging cutting-edge technologies for test automation within the UiPath platform. Attendees will delve into the integration of generative AI, a test automation solution, with Open AI advanced natural language processing capabilities.
Throughout the session, participants will discover how this synergy empowers testers to automate repetitive tasks, enhance testing accuracy, and expedite the software testing life cycle. Topics covered include the seamless integration process, practical use cases, and the benefits of harnessing AI-driven automation for UiPath testing initiatives. By attending this webinar, testers, and automation professionals can gain valuable insights into harnessing the power of AI to optimize their test automation workflows within the UiPath ecosystem, ultimately driving efficiency and quality in software development processes.
What will you get from this session?
1. Insights into integrating generative AI.
2. Understanding how this integration enhances test automation within the UiPath platform
3. Practical demonstrations
4. Exploration of real-world use cases illustrating the benefits of AI-driven test automation for UiPath
Topics covered:
What is generative AI
Test Automation with generative AI and Open AI.
UiPath integration with generative AI
Speaker:
Deepak Rai, Automation Practice Lead, Boundaryless Group and UiPath MVP
Climate Impact of Software Testing at Nordic Testing DaysKari Kakkonen
My slides at Nordic Testing Days 6.6.2024
Climate impact / sustainability of software testing discussed on the talk. ICT and testing must carry their part of global responsibility to help with the climat warming. We can minimize the carbon footprint but we can also have a carbon handprint, a positive impact on the climate. Quality characteristics can be added with sustainability, and then measured continuously. Test environments can be used less, and in smaller scale and on demand. Test techniques can be used in optimizing or minimizing number of tests. Test automation can be used to speed up testing.
Communications Mining Series - Zero to Hero - Session 1DianaGray10
This session provides introduction to UiPath Communication Mining, importance and platform overview. You will acquire a good understand of the phases in Communication Mining as we go over the platform with you. Topics covered:
• Communication Mining Overview
• Why is it important?
• How can it help today’s business and the benefits
• Phases in Communication Mining
• Demo on Platform overview
• Q/A
For the full video of this presentation, please visit: https://www.edge-ai-vision.com/2024/06/building-and-scaling-ai-applications-with-the-nx-ai-manager-a-presentation-from-network-optix/
Robin van Emden, Senior Director of Data Science at Network Optix, presents the “Building and Scaling AI Applications with the Nx AI Manager,” tutorial at the May 2024 Embedded Vision Summit.
In this presentation, van Emden covers the basics of scaling edge AI solutions using the Nx tool kit. He emphasizes the process of developing AI models and deploying them globally. He also showcases the conversion of AI models and the creation of effective edge AI pipelines, with a focus on pre-processing, model conversion, selecting the appropriate inference engine for the target hardware and post-processing.
van Emden shows how Nx can simplify the developer’s life and facilitate a rapid transition from concept to production-ready applications.He provides valuable insights into developing scalable and efficient edge AI solutions, with a strong focus on practical implementation.
Maruthi Prithivirajan, Head of ASEAN & IN Solution Architecture, Neo4j
Get an inside look at the latest Neo4j innovations that enable relationship-driven intelligence at scale. Learn more about the newest cloud integrations and product enhancements that make Neo4j an essential choice for developers building apps with interconnected data and generative AI.
UiPath Test Automation using UiPath Test Suite series, part 5DianaGray10
Welcome to UiPath Test Automation using UiPath Test Suite series part 5. In this session, we will cover CI/CD with devops.
Topics covered:
CI/CD with in UiPath
End-to-end overview of CI/CD pipeline with Azure devops
Speaker:
Lyndsey Byblow, Test Suite Sales Engineer @ UiPath, Inc.
In his public lecture, Christian Timmerer provides insights into the fascinating history of video streaming, starting from its humble beginnings before YouTube to the groundbreaking technologies that now dominate platforms like Netflix and ORF ON. Timmerer also presents provocative contributions of his own that have significantly influenced the industry. He concludes by looking at future challenges and invites the audience to join in a discussion.
Removing Uninteresting Bytes in Software FuzzingAftab Hussain
Imagine a world where software fuzzing, the process of mutating bytes in test seeds to uncover hidden and erroneous program behaviors, becomes faster and more effective. A lot depends on the initial seeds, which can significantly dictate the trajectory of a fuzzing campaign, particularly in terms of how long it takes to uncover interesting behaviour in your code. We introduce DIAR, a technique designed to speedup fuzzing campaigns by pinpointing and eliminating those uninteresting bytes in the seeds. Picture this: instead of wasting valuable resources on meaningless mutations in large, bloated seeds, DIAR removes the unnecessary bytes, streamlining the entire process.
In this work, we equipped AFL, a popular fuzzer, with DIAR and examined two critical Linux libraries -- Libxml's xmllint, a tool for parsing xml documents, and Binutil's readelf, an essential debugging and security analysis command-line tool used to display detailed information about ELF (Executable and Linkable Format). Our preliminary results show that AFL+DIAR does not only discover new paths more quickly but also achieves higher coverage overall. This work thus showcases how starting with lean and optimized seeds can lead to faster, more comprehensive fuzzing campaigns -- and DIAR helps you find such seeds.
- These are slides of the talk given at IEEE International Conference on Software Testing Verification and Validation Workshop, ICSTW 2022.
2. Who are we?
Full service provider of
branding, marketing, website
design & development, and
strategic communication
services
Proven methodology for
positioning companies to
scale and succeed in an
increasingly digital
environment
Trusted agency partner to
dozens of recognized
associations and
corporations
12. Overview of Drupal 8 Migrate
・Complete rewrite & moved into core in D8
・OOTB support for D6 and D7 to D8
・Nodes, Users, Comments, Profiles, Taxonomy
・Configuration & Content
・Support for custom source and destination classes
・Several processors for working with data
12/14/20
17
12
13. Drupal 8 Configuration Migration
・Completely new feature in Drupal 8
・Will migrate data structures such as node types and
vocabularies
・Support is limited in the contrib space
12/14/20
17
13
Image from Drupal.org
14. Drupal 8 Content Migration
・Core modules such as User, Node, Comment, etc… come with
d6 and d7 migration templates
・Migrate sources and destinations are extensible
・Similar to Drupal 7, typically build a migration for each entity
type/bundle combination
12/14/20
17
14
15. D8 Migrate Module Overview
・Provides powerful API for all migrations
・Provides extensible object-oriented base classes and interfaces
for migration plugin components
・source & destination plugins
・process plugins
・config migration mappings
・Provides configuration entity types to migrate configuration
12/14/20
17
15
16. Configuration Files
・ Config files provide the blueprint for the migration
・ Two types of migration config files:
・ migrate_plus.migrate_group.<name>.yml
・ migrate_plus.migrate.<name>.yml
・ Config file overview
・ id: Unique system name of the migration (same as the last part of the file
“d6_node”)
・ source: Defines the source plugin that is used (d6_node or custom blog_node)
・ process: Mapping of fields and processors used in the migration
・ destination: Define where this content is being migrated to
・ dependencies: Other migrations that need to run before this one
12/14/20
17
16
17. Contributed Space
・Contributed space still provides significant value
・Migrate Plus: The Migrate Plus project provides extensions to
core migration framework functionality, as well as examples.
・Migrate Tools: The Migrate Tools module provides tools for
running and managing Drupal 8 migrations.
12/14/20
17
17
19. Anatomy of a Migration
・Migration Group
・Migration Definition
・Migration Source
・Migration Destination
・Migration Mappings
12/14/20
17
19
20. Migration Group
・ Similar to hook_migrate_api in
Drupal 7
・ Defines a group of migration
classes
・ id – unique identifier
・ shared_configuration – Defines
shared configuration between all
migration classes that are part of
this group. **Example: Setting
the source database to use
・ dependencies – Sets the
dependencies for this set of
migration classes to function
12/14/20
17
20
id: btwp
label: Custom migrations
description: Custom data migrations
from BT WP.
shared_configuration:
source:
key: legacy
dependencies:
enforced:
module:
- demo_migrate
21. Migration File - Definition
・ Similar to a Migration class in
Drupal 7
・ Defines the metadata for the
migration in Drupal 8
・ id should match the file name
・id: blog_post
・filename:
migrate_plus.migration.blog_
post.yml
12/14/20
17
21
id: blog_post
label: Blog Post Migration.
migration_group: btwp
migration_tags:
- blog
- node
migration_dependencies:
optional:
- blog_tags
dependencies:
enforced:
module:
- demo_migrate
22. Migration File - Source
・Defines the source plugin
class for the migration
・Tells the migration where the
data is coming from
・Different sources allow
different configurations
・Allows definition of constants
to be used in field mappings
12/14/20
17
22
id: blog_post
label: Blog Post Migration.
migration_group: btwp
migration_tags:
- blog
- node
source:
plugin: wp_post
constants:
format: rich_text
migration_dependencies:
optional:
- blog_tags
dependencies:
enforced:
module:
- demo_migrate
23. Migration File - Destination
・Defines the destination
plugin class for the
migration
・default_bundle: Defines
the bundle we want the
entity:node plugin to map
data to
12/14/20
17
23
id: blog_post
label: Blog Post Migration.
migration_group: btwp
migration_tags:
- blog
- node
source:
plugin: wp_post
destination:
plugin: 'entity:node'
default_bundle: blog
migration_dependencies:
optional:
- blog_tags
dependencies:
enforced:
module:
- demo_migrate
24. Migration File – Field Mapping
・Defines field mappings and
any processing that should
be performed on source
data before being mapped
to destination
・Default process plugin used
is ‘get’
12/14/20
17
24
id: blog_post
label: Blog Post Migration.
migration_group: btwp
migration_tags:
- blog
- node
source:
plugin: wp_post
constants:
format: rich_text
destination:
plugin: 'entity:node'
default_bundle: blog
process:
title: post_title
sticky: 0
promote: 0
uid: 1
'body/value': post_content
'body/format': constants/format
migration_dependencies:
optional:
- blog_tags
25. Migration File – Processors
・Utilize processors to
manipulate data before it
gets mapped
・Several processors available
OOTB
・Very powerful
12/14/20
17
25
id: blog_post
label: Blog Post Migration.
migration_group: btwp
migration_tags:
- blog
- node
source:
plugin: wp_post
constants:
format: rich_text
destination:
plugin: 'entity:node'
default_bundle: blog
process:
title: post_title
sticky: 0
promote: 0
uid: 1
'body/value':
plugin: wp_vc_parser
source: post_content
'body/format': constants/format
migration_dependencies:
optional:
- blog_tags
26. Using Process Plugins
・ Processor plugins provide flexibility in working with data being
migrated
・iterator– Provides an iterator to loop through multiple values in a
source field
・default_value– Provides the ability to set a default value to a field
・entity_generate – Generates entities for reference fields if they don’t
exist
・entity_lookup – Looks up entities migrated through another migration
・ Very powerful and can be combined together
・Ex. Iterate over all of my items and perform an entity_lookup to find the
nid mapping to the new system
12/14/20
17
26
28. Customizing Your Migrations
・99% of Enterprise migrations will require customizations
・Custom requirements and mappings likely required
・Have to deal with the “innovative” way that the previous
developer built the source site
12/14/20
17
28
30. Scenario: WordPress -> Drupal
・Migrating a website from WordPress to Drupal 8
・Website uses Visual Composer to manage content
・Website consists of both Posts and Pages
12/14/20
17
30
31. MigrationGroup: BTWP
・id: btwp
・shared_config: legacy (legacy
is the source WP database
configured in settings.php
that all of the migrations will
read from)
・dependencies: modules that
are required for these
migrations to run
12/14/20
17
31
id: btwp
label: Custom migrations
description: Custom data migrations
from BT WP.
shared_configuration:
source:
key: legacy
dependencies:
enforced:
module:
- demo_migrate
32. WPPost.php - MigrateSourcePlugin
・ Custom MigrateSourcePlugin
that handles reading from the
wp_posts table in WordPress
・ Defines MigrateSource as
wp_post
・ This is used in .yml
migration mappings
・ Extends SqlBase source class
since our datasource is MySQL
12/14/20
17
32
<?php
/**
* @file
* Contains Drupaldemo_migratePluginmigratesourcewp_post.
*/
namespace Drupaldemo_migratePluginmigratesource;
use DrupalmigrateRow;
use DrupalmigratePluginmigratesourceSqlBase;
/**
* Source for CSV files.
*
* @MigrateSource(
* id = "wp_post"
* )
*/
class WPPost extends SqlBase {
33. 12/14/20
17
33
WPPost.php - MigrateSourcePlugin
・Basic function definitions:
・query() – Defines the base query to pull the data.
・fields() – Defines the fields that get pulled from the source
database.
・getIds() – Defines the ID mapping for source value.
・baseFields() – Helper function to define base fields
34. ・query() - Defines query to
load all data from the
wp_posts table to be
processed.
・fields() – Calls the
baseFields() method to
load fields from
wp_posts table for
mapping purposes.
12/14/20
17
34
WPPost.php - MigrateSourcePlugin
class WPPost extends SqlBase {
/**
* {@inheritdoc}
*/
public function query() {
return $this->select('wp_posts', 'wpp')
->fields('wpp', array_keys($this-
>baseFields()))
->condition('wpp.ID', 0, '>');
}
/**
* {@inheritdoc}
*/
public function fields() {
$fields = $this->baseFields();
return $fields;
}
35. ・getIds() – Defines ID field
and settings so the
migration knows how to
map the data in your
source to the data in your
destination.
・prepareRow() –
Implements prepareRow
and calls parent.
12/14/20
17
35
WPPost.php - MigrateSourcePlugin
/**
* {@inheritdoc}
*/
public function getIds() {
return [
'ID' => [
'type' => 'integer',
'alias' => 'wpp',
],
];
}
/**
* {@inheritdoc}
*/
public function prepareRow(Row $row) {
return parent::prepareRow($row);
}
36. ・baseFields() – Defines the
base fields from the
wp_posts table so that
they can be used in the
migrations.
12/14/20
17
36
WPPost.php - MigrateSourcePlugin
/**
* Returns the user base fields to be migrated.
*
* @return array
* Associative array having field name as key and description as value.
*/
protected function baseFields() {
$fields = [
'ID' => $this->t('Post ID'),
'post_author' => $this->t('Post Author'),
'post_date' => $this->t('Post Date'),
'post_date_gmt' => $this->t('Post Date GMT'),
'post_content' => $this->t('Post Content'),
'post_title' => $this->t('Post Title'),
'post_excerpt' => $this->t('Post Excerpt'),
'post_status' => $this->t('Post Status'),
'comment_status' => $this->t('Comment Status'),
'ping_status' => $this->t('Ping Status'),
'post_password' => $this->t('Post Password'),
'post_name' => $this->t('Post Name'),
'post_type' => $this->t('Post Type'),
];
return $fields;
}
37. So How Does This Actually Work?
12/14/20
17
37
38. Migration File – Blog Post
・group – Defines the source
for the migrations.
・Tells all migrations in this
group to utilize the
“legacy” database
12/14/20
17
38
migrate_plus.migration.blog_post.yml
id: blog_post
label: Blog Post Migration.
migration_group: btwp
migrate_plus.migration_group.btwp.yml
id: btwp
label: Custom migrations
description: Custom data migrations from BT WP.
shared_configuration:
source:
key: legacy
39. Migration File – Blog Post
・source_plugin – Maps to the
source WPPost.php
MigrateSource that we
created based on the ID
defined.
12/14/20
17
39
migrate_plus.migration.blog_post.yml
source:
plugin: wp_post
constants:
format: rich_text
WPPost.php
/**
* Source for SQL files.
*
* @MigrateSource(
* id = "wp_post"
* )
*/
class WPPost extends SqlBase {
42. Results
・Well that didn’t work as well as we hoped!
・Each CMS has its own unique quirks and way of storing
information
・In our WP build, we happen to be using Visual Composer
which creates a majority of the site with shortcodes
・So what now?
12/14/20
17
42
43. MigrateProcessPlugin
・Create a custom MigrateProcess
・Parse through the WordPress Visual Composer shortcodes
・(Simple) Replace shortcodes with markup
・(Advanced) Repurpose shortcodes into paragraphs
・ Sorry, this is for another time!
12/14/20
17
43
44. MigrateProcessPlugin
・@MigrateProcessPlugin –
Defines the ID of the plugin
that will be used in .yml file
・Class name (WPVC) must
match the filename
WPVC.php
・Extends ProcessPluginBase
12/14/20
17
44
<?php
namespace Drupaldemo_migratePluginmigrateprocess;
use DrupalmigrateProcessPluginBase;
use DrupalmigrateMigrateExecutableInterface;
use DrupalmigrateRow;
/**
* Handles Visual Composer Markup.
* @see
DrupalmigratePluginMigrateProcessInterface
* @MigrateProcessPlugin(
* id = "wp_vc_parser"
* )
*/
class WPVC extends ProcessPluginBase {
45. MigrateProcessPlugin
・Define regex expressions to
be used in the parsing of
content
・Implements transform() –
required method that does
the actual processing of the
source value
12/14/20
17
45
class WPVC extends ProcessPluginBase {
// Regex101 reference:
https://regex101.com/r/pJ7lO1
const SHORTOCODE_REGEXP = "/(?P<shortcode>(?:(?:s?[))(?P<name>[w-
]{3,})(?:s(?P<attrs>[wd,s="'-
+#%!~`&.s:/?|]+))?(?:])(?:(?P<content>[wd,!@#$%^&*()s
="'-+&.s:/?|<>]+)(?:[/[w-_]+]))?)/u";
// Regex101 reference: https://regex101.com/r/sZ7wP0
const ATTRIBUTE_REGEXP =
"/(?<name>S+)=["']?(?P<value>(?:.(?!["']?s+(?:S+)=|[>"']))+.)["']?/u";
/**
* {@inheritdoc}
*/
public function transform($value,
MigrateExecutableInterface $migrate_executable, Row
$row, $destination_property) {
if ($value) {
$value = $this->replaceShortcodes($value);
}
else {
throw new MigrateException(sprintf('%s is not
an array', var_export($value, TRUE)));
}
}
46. MigrateProcessPlugin
・Helper method to convert all
shortcodes into an array and
replace strings
・Could get very complex
depending on the setup of
your site
12/14/20
17
46
/**
* Replace all shortcodes w/ markup.
* @param $content
* @return mixed
*/
protected function replaceShortcodes($content){
// String Replacement
$shortcode_arr = $this->parse_shortcodes($content);
// For every shortcode
foreach ($shortcode_arr as $key => $value) {
switch ($value['name']) {
case 'vc_row':
$this->replaceVCRow($value);
break;
case 'vc_column':
$this->replaceVCColumn($value);
break;
default:
echo $key . ' is not mapped yet.';
break;
}
}
//Now replace all closing tags.
$content = str_replace('[/vc_row]', '</div>', $content);
$content = str_replace('[/vc_col]', '</div>', $content);
return $content;
}
48. Current State of Things
・Drupal 8.4 has several issues/dependencies
・Requires Drush 9.0
・Must be running migrate_tools 4.x with this patch for Drush 9.0
to work
・Drush 9.0 changed some migrate commands slightly:
• drush mim (migrate:import) instead of drush mi (migrate-import)
12/14/20
17
48
49. Useful Code Snippet
・Must delete
configuration file and
reimport to get
changes to .yml files
・Typically handle this
through hook_uninstall
・ drush pm-uninstall <mymodule>
・ drush en <mymodule>
12/14/20
17
49
/**
* Implements hook_uninstall().
* Removes stale migration configs during uninstall.
*/
function demo_migrate_uninstall() {
$query = db_select('config', 'c')
->fields('c', array('name'))
->condition('name', db_like('migrate_plus.') .
'%', 'LIKE')
->execute();
$config_names = $query->fetchAll();
// Delete each config using configFactory.
foreach ($config_names as $config_name) {
Drupal::configFactory()-
>getEditable($config_name->name)->delete();
}
}
52. Drupal 8 References
・Upgrading from Drupal 6 or 7 to Drupal 8
・Upgrade using Drush
・Known Issues when migrating from Drupal 6 or 7 to Drupal 8
・Migrate Process Overview (Processor Plugins)
・Webinar – Migrating to Drupal 8
・Carlyle Example Migrate Project
5
2
Editor's Notes
Enterprise are more complex, typically custom development
Innovate = Hacky!