How to replace another module plugin in Drupal 8?

07/07/2018


Let’s say that I want to replace the block_content_type plugin of the core block_content module to ad some features while not having to rewrite a whole module to achieve this.

It is very easy to replace a service by providing your own service definition with the same key as the to-be-replaces service. But how do you do that with plugins?

قالب وردپرس