How do I get the content type name using code?
To get a property, there is ConfigEntityBase::get(). Since ConfigEntityBase is a base class for NodeType, you can always use $value-&gt;get('name') to get the value of the name property.