Magento 2 Developer's Guide by Branko Ajzele
Author:Branko Ajzele [Ajzele, Branko]
Language: eng
Format: epub, azw3
Publisher: Packt Publishing
Published: 2015-12-23T23:00:00+00:00
This way, PhpStorm will know how to provide autocomplete while we type around XML files.
As an example, let's take a look at how we could use the css directive to add an external CSS file to our page. With an IDE that supports autocomplete as soon as we type the css directive within the page | head element, autocomplete might throw out something like the following:
A list of available attributes is shown, such as src, sizes, ie_condtion, src_type, and so on. IDEs like PhpStorm will allow us to right-click an element or its attribute and go to the definition. Looking into the definition for the src attribute gets us into the vendor/magento/framework/View/Layout/etc/head.xsd file that defines the css element as follows:
<xs:complexType name="linkType"> <xs:attribute name="src" type="xs:string" use="required"/> <xs:attribute name="defer" type="xs:string"/> <xs:attribute name="ie_condition" type="xs:string"/> <xs:attribute name="charset" type="xs:string"/> <xs:attribute name="hreflang" type="xs:string"/> <xs:attribute name="media" type="xs:string"/> <xs:attribute name="rel" type="xs:string"/> <xs:attribute name="rev" type="xs:string"/> <xs:attribute name="sizes" type="xs:string"/> <xs:attribute name="target" type="xs:string"/> <xs:attribute name="type" type="xs:string"/> <xs:attribute name="src_type" type="xs:string"/> </xs:complexType>
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Sass and Compass in Action by Wynn Netherland Nathan Weizenbaum Chris Eppstein Brandon Mathis(7778)
Grails in Action by Glen Smith Peter Ledbrook(7696)
Configuring Windows Server Hybrid Advanced Services Exam Ref AZ-801 by Chris Gill(6553)
Azure Containers Explained by Wesley Haakman & Richard Hooper(6540)
Running Windows Containers on AWS by Marcio Morales(6069)
Kotlin in Action by Dmitry Jemerov(5063)
Microsoft 365 Identity and Services Exam Guide MS-100 by Aaron Guilmette(4910)
Combating Crime on the Dark Web by Nearchos Nearchou(4491)
Management Strategies for the Cloud Revolution: How Cloud Computing Is Transforming Business and Why You Can't Afford to Be Left Behind by Charles Babcock(4414)
Microsoft Cybersecurity Architect Exam Ref SC-100 by Dwayne Natwick(4325)
The Ruby Workshop by Akshat Paul Peter Philips Dániel Szabó and Cheyne Wallace(4164)
The Age of Surveillance Capitalism by Shoshana Zuboff(3948)
Python for Security and Networking - Third Edition by José Manuel Ortega(3731)
Learn Windows PowerShell in a Month of Lunches by Don Jones(3508)
The Ultimate Docker Container Book by Schenker Gabriel N.;(3402)
Mastering Python for Networking and Security by José Manuel Ortega(3344)
Mastering Azure Security by Mustafa Toroman and Tom Janetscheck(3330)
Blockchain Basics by Daniel Drescher(3292)
Learn Wireshark by Lisa Bock(3249)
