lib/pageflow/configuration.rb
# Scope configuration to entries of a certain entry type or access
# entry type specific configuration. When building a configuration
# object for an entry, the passed block is only evaluated when
# types match. When building `Pageflow.config`, all
# `for_entry_type` blocks are evaluated.
#
# @param [EntryType] type
#
# @yieldparam [EntryTypeConfiguration] entry_type_config -
#   Instance of configuration class passed as `configuration`
#   option during registration of entry type.
#
# @since 15.1
Scope configuration to entries of a certain entry type or access
entry type specific configuration. When building a configuration
object for an entry, the passed block is only evaluated when
types match. When building `Pageflow.config`, all
`for_entry_type` blocks are evaluated.
Scope configuration to entries of a certain entry type or access entry type specific configuration . When building a configuration object for an entry the passed block is only evaluated when types match . When building ` Pageflow . config ` all ` for_entry_type ` blocks are evaluated .
def for_entry_type(type)
      return if @target_type_name && @target_type_name != type.name
      yield get_entry_type_config(type)
    end
def for_entry_type ( type ) return if @target_type_name && @target_type_name != type . name yield get_entry_type_config ( type ) end
Scope configuration to entries of a certain entry type or access
entry type specific configuration.
Scope configuration to entries of a certain entry type or access entry type specific configuration .
type
entry_type_config Instance of configuration class passed as `configuration` option during registration of entry type.
entry_type_config Instance of configuration class passed as ` configuration ` option during registration of entry type .
since
None