Add method get_require_parent()

Otherwise it is impossible to configure some placeholders to behave differently depending on the context they are used.